﻿using BCCommon;
using BCDto.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.Agent.AgentAreaRecord
{
    /// <summary>
    /// 代理商区域添加模型信息
    /// </summary>
    public class AgentAreaRecordRequestDto
    {
        /// <summary>
        /// 省
        /// </summary>
        [Display(Name = "省")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public long ProvinceId { get; set; }
        /// <summary>
        /// 省编码
        /// </summary>
        [Display(Name = "省编码")]
        [Required(ErrorMessage = "{0} 为必填项")]
        [WorkflowFormItemShowName("ProvinceName")]
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 省
        /// </summary>
        [NonInjection]
        public string ProvinceName { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        [Display(Name = "市")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public long CityId { get; set; }
        /// <summary>
        /// 市编码
        /// </summary>
        [Display(Name = "市编码")]
        [Required(ErrorMessage = "{0} 为必填项")]
        [WorkflowFormItemShowName("CityName")]
        public string CityCode { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        [NonInjection]
        public string CityName { get; set; }
        /// <summary>
        /// 区
        /// </summary>
        [Display(Name = "区")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public long CountyId { get; set; }
        /// <summary>
        /// 区县编码
        /// </summary>
        [Display(Name = "区县编码")]
        [Required(ErrorMessage = "{0} 为必填项")]
        [WorkflowFormItemShowName("CountyName")]
        public string CountyCode { get; set; }
        /// <summary>
        /// 区县名称
        /// </summary>
        [NonInjection]
        public string CountyName { get; set; }
    }
}
